package c.h.a.x;

import com.liuzh.deviceinfo.appinfo.ManifestActivity;

/* compiled from: lambda */
public final /* synthetic */ class k implements Runnable {
    public final /* synthetic */ ManifestActivity a;
    public final /* synthetic */ String b;

    public /* synthetic */ k(ManifestActivity manifestActivity, String str) {
        this.a = manifestActivity;
        this.b = str;
    }

    /* JADX WARNING: Missing exception handler attribute for start block: B:34:0x0096 */
    /* JADX WARNING: Can't wrap try/catch for region: R(4:15|(5:17|18|(2:20|(1:22)(2:23|(1:25)))(2:26|(1:28))|(1:32)(1:31)|33)|34|35) */
    public final void run() {
        /*
        r16 = this;
        r0 = r16;
        r1 = r0.a;
        r2 = r0.b;
        r3 = r1.getPackageManager();
        r4 = "";
        r5 = new java.lang.StringBuilder;
        r5.<init>();
        r2 = r3.getResourcesForApplication(r2);	 Catch:{ NameNotFoundException -> 0x00dc }
        r3 = r2.getAssets();	 Catch:{ Exception -> 0x00d7 }
        if (r3 != 0) goto L_0x001d;
    L_0x001b:
        goto L_0x00dc;
    L_0x001d:
        r3 = r2.getAssets();	 Catch:{ Exception -> 0x00d7 }
        r6 = "AndroidManifest.xml";
        r3 = r3.openXmlResourceParser(r6);	 Catch:{ Exception -> 0x00d7 }
        r6 = r3.next();	 Catch:{ Exception -> 0x00d7 }
    L_0x002b:
        r7 = 1;
        if (r6 == r7) goto L_0x00d7;
    L_0x002e:
        r8 = 2;
        r9 = ">";
        if (r6 != r8) goto L_0x00bf;
    L_0x0033:
        r6 = "<";
        r5.append(r6);	 Catch:{ Exception -> 0x00d7 }
        r6 = r3.getName();	 Catch:{ Exception -> 0x00d7 }
        r5.append(r6);	 Catch:{ Exception -> 0x00d7 }
        r6 = r3.getAttributeCount();	 Catch:{ Exception -> 0x00d7 }
        r10 = 0;
    L_0x0044:
        if (r10 >= r6) goto L_0x00ae;
    L_0x0046:
        r11 = r3.getAttributeName(r10);	 Catch:{ Exception -> 0x00d7 }
        r12 = r3.getAttributeValue(r10);	 Catch:{ Exception -> 0x00d7 }
        r13 = "@";
        r13 = r12.startsWith(r13);	 Catch:{ Exception -> 0x00d7 }
        if (r13 == 0) goto L_0x0096;
    L_0x0056:
        r13 = r12.substring(r7);	 Catch:{ Exception -> 0x0096 }
        r13 = java.lang.Integer.valueOf(r13);	 Catch:{ Exception -> 0x0096 }
        r13 = r13.intValue();	 Catch:{ Exception -> 0x0096 }
        r14 = -1;
        r15 = r11.hashCode();	 Catch:{ Exception -> 0x0096 }
        r8 = -341064690; // 0xffffffffebabc40e float:-4.153043E26 double:NaN;
        if (r15 == r8) goto L_0x007c;
    L_0x006c:
        r8 = 110327241; // 0x69375c9 float:5.5468324E-35 double:5.45088996E-316;
        if (r15 == r8) goto L_0x0072;
    L_0x0071:
        goto L_0x0085;
    L_0x0072:
        r8 = "theme";
        r8 = r11.equals(r8);	 Catch:{ Exception -> 0x0096 }
        if (r8 == 0) goto L_0x0085;
    L_0x007a:
        r14 = 0;
        goto L_0x0085;
    L_0x007c:
        r8 = "resource";
        r8 = r11.equals(r8);	 Catch:{ Exception -> 0x0096 }
        if (r8 == 0) goto L_0x0085;
    L_0x0084:
        r14 = 1;
    L_0x0085:
        if (r14 == 0) goto L_0x008e;
    L_0x0087:
        if (r14 == r7) goto L_0x008e;
    L_0x0089:
        r8 = r2.getString(r13);	 Catch:{ Exception -> 0x0096 }
        goto L_0x0092;
    L_0x008e:
        r8 = r2.getResourceEntryName(r13);	 Catch:{ Exception -> 0x0096 }
    L_0x0092:
        r12 = android.text.TextUtils.htmlEncode(r8);	 Catch:{ Exception -> 0x0096 }
    L_0x0096:
        r8 = " ";
        r5.append(r8);	 Catch:{ Exception -> 0x00d7 }
        r5.append(r11);	 Catch:{ Exception -> 0x00d7 }
        r8 = "=\"";
        r5.append(r8);	 Catch:{ Exception -> 0x00d7 }
        r5.append(r12);	 Catch:{ Exception -> 0x00d7 }
        r8 = "\"";
        r5.append(r8);	 Catch:{ Exception -> 0x00d7 }
        r10 = r10 + 1;
        goto L_0x0044;
    L_0x00ae:
        r5.append(r9);	 Catch:{ Exception -> 0x00d7 }
        r6 = r3.getText();	 Catch:{ Exception -> 0x00d7 }
        if (r6 == 0) goto L_0x00d1;
    L_0x00b7:
        r6 = r3.getText();	 Catch:{ Exception -> 0x00d7 }
        r5.append(r6);	 Catch:{ Exception -> 0x00d7 }
        goto L_0x00d1;
    L_0x00bf:
        r7 = 3;
        if (r6 != r7) goto L_0x00d1;
    L_0x00c2:
        r6 = "</";
        r5.append(r6);	 Catch:{ Exception -> 0x00d7 }
        r6 = r3.getName();	 Catch:{ Exception -> 0x00d7 }
        r5.append(r6);	 Catch:{ Exception -> 0x00d7 }
        r5.append(r9);	 Catch:{ Exception -> 0x00d7 }
    L_0x00d1:
        r6 = r3.next();	 Catch:{ Exception -> 0x00d7 }
        goto L_0x002b;
    L_0x00d7:
        r2 = r5.toString();
        goto L_0x00dd;
    L_0x00dc:
        r2 = r4;
    L_0x00dd:
        r3 = javax.xml.transform.TransformerFactory.newInstance();	 Catch:{ Exception -> 0x0118 }
        r3 = r3.newTransformer();	 Catch:{ Exception -> 0x0118 }
        r5 = "indent";
        r6 = "yes";
        r3.setOutputProperty(r5, r6);	 Catch:{ Exception -> 0x0118 }
        r5 = "{http://xml.apache.org/xslt}indent-amount";
        r6 = "2";
        r3.setOutputProperty(r5, r6);	 Catch:{ Exception -> 0x0118 }
        r5 = new javax.xml.transform.stream.StreamResult;	 Catch:{ Exception -> 0x0118 }
        r6 = new java.io.StringWriter;	 Catch:{ Exception -> 0x0118 }
        r6.<init>();	 Catch:{ Exception -> 0x0118 }
        r5.<init>(r6);	 Catch:{ Exception -> 0x0118 }
        r6 = new javax.xml.transform.stream.StreamSource;	 Catch:{ Exception -> 0x0118 }
        r7 = new java.io.ByteArrayInputStream;	 Catch:{ Exception -> 0x0118 }
        r8 = java.nio.charset.StandardCharsets.UTF_8;	 Catch:{ Exception -> 0x0118 }
        r2 = r2.getBytes(r8);	 Catch:{ Exception -> 0x0118 }
        r7.<init>(r2);	 Catch:{ Exception -> 0x0118 }
        r6.<init>(r7);	 Catch:{ Exception -> 0x0118 }
        r3.transform(r6, r5);	 Catch:{ Exception -> 0x0118 }
        r2 = r5.getWriter();	 Catch:{ Exception -> 0x0118 }
        r4 = r2.toString();	 Catch:{ Exception -> 0x0118 }
    L_0x0118:
        r2 = new c.h.a.x.l;
        r2.m2162init(r1, r4);
        r1.runOnUiThread(r2);
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.h.a.x.k.run():void");
    }
}
